import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueResource from 'vue-resource'
import './utils/mintUI'
import './utils/rem'
import './style/main.scss'
import  './assets/css/mui.min.css'
import  './assets/css/icons-extra.css'
import { instance } from './utils/http'
import moment from 'moment'

Vue.config.productionTip = false
// Vue.use(VueResource)
// Vue.http.options.root='http://127.0.0.1:8899'
// instance.defaults.headers.post["Content-type"] = "application/x-www-form-urlencoded"
Vue.prototype.$http = instance

// 定义全局过滤器
Vue.filter('dateFormat', function(dataStr, pattern="YYYY-MM-DD HH:mm:ss"){
  return moment(dataStr).format(pattern)
})
// 替换图片
// Vue.filter('modifyImg', function(dataStr) {
//   dataStr.replace(/src/)
// })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
